package com.home;



enum Cc {
    RED,BLUE;

    private Cc(){
        System.out.println("constructor called for"+this.toString());
    }

    public void colorInfo(){
        System.out.println("Universal color");
    }
}

public class enumTest{
    public static void main(String[] args){
        Cc c1= Cc.RED;
        System.out.println(c1);
        c1.colorInfo();
    }
}
